package com.yykj.user.center.server.repository.patient;

import com.yykj.user.center.server.model.Evaluation;
import com.yykj.user.center.server.model.File;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author chenl
 * @version 1.0
 * @date 2021/11/16 20:40
 */
@Repository
public  interface FileRepository extends JpaRepository<File, String>, JpaSpecificationExecutor<File> {

    List<File> findAllByBusinessId(String businessId);

    List<File> findAllByBusinessIdOrderBySort(String businessId);
}
